package com.skycong.hello77.viewmodel;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.skycong.hello77.R;
import com.skycong.hello77.entity.ApkEntity;

public class ProductDetailView extends RecyclerView.ViewHolder {
    private TextView product_name;
    private TextView product_num_title;
    private TextView product_num;
    private TextView product_price;
    private TextView product_spec;
    public ProductDetailView(View itemView) {
        super(itemView);
        product_name = (TextView) itemView.findViewById(R.id.tv_product_name);
        product_num = (TextView) itemView.findViewById(R.id.tv_num);
        product_num_title = (TextView) itemView.findViewById(R.id.tv_num_title);
        product_spec = (TextView) itemView.findViewById(R.id.tv_product_spec);
        product_price = (TextView) itemView.findViewById(R.id.product_price);
    }
    public void detail(ApkEntity data){
        product_price.setText(data.getProduct_price());
        product_num.setText(data.getProduct_num());
        product_num_title.setText(data.getProduct_num_title());
        product_name.setText(data.getProduct_name());
        product_spec.setText(data.getProduct_spec());

    }
}
